import Vue from "vue";
import moment from "moment";
//全局过滤器
Vue.filter("timeMf", (val) => {
    if (val == "0000-00-00 00:00:00") {
        return "时间有误"
    } else {
        return moment(val).format("YYYY-MM-DD hh:mm:ss");
    }
})

Vue.filter("dateMF", (val) => {
    return moment(val).format("YYYY/MM/DD");
  })